# coding:utf-8
# filename: Face.py
# author by: Face
# 10以内的斐波那契数列
import sys
def fibona(n):
    n1,n2,count = 0,1,0
    while True:
        if count > n:
            return
        yield n1
        n1,n2 = n2,n1+n2
        count += 1
f = fibona(6)
while True:
    try:
        print(next(f),end=" ")
    except StopIteration:
        sys.exit()